﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace PSE.Framework.Communication.Spb.Common
{
    public class SpbSessionConfigurationElement : BaseConfigurationElement
    {
        [ConfigurationProperty("user", IsRequired = true)]
        public string User
        {
            get { return (string)this["user"]; }
        }

        [ConfigurationProperty("password", IsRequired = true)]
        public string Password
        {
            get { return (string)this["password"]; }
        }

        [ConfigurationProperty("host", IsRequired = true)]
        public string Host
        {
            get { return (string)this["host"]; }
        }

        [ConfigurationProperty("porta", IsRequired = true)]
        public int Porta
        {
            get { return (int)this["porta"]; }
        }

        [ConfigurationProperty("heartBeat", IsRequired = true)]
        public int HeartBeat
        {
            get { return (int)this["heartBeat"]; }
        } 
    }
}